package chp09;

public class Test7 {

    //方法参数
    public static void show(String name){
        System.out.println("你好，" + name);
    }

    public static void add(int a, int b){
        int sum = a + b;
        System.out.println("和:"+ sum);
    }

    public static void add(int a, int b,int c){
        int sum = a + b + c;
        System.out.println("和:"+ sum);
    }

    public static void main(String[] args) {
        //参数
        show("jack");
        add(5,6);
        add(1,2,3);
    }
}
